import 'package:flutter/material.dart';

class ButtonDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('Button'),
      ),
      body: Center(
        child:
         Column(children: [
        ElevatedButton(onPressed: (){
        }, child: Text('ElevatedButton')),
        TextButton(onPressed: (){

        }, child: Text('TextButton')),
        OutlinedButton(onPressed: (){

        }, child: Text('OutlinedButton')),
        IconButton(onPressed: (){

        }, icon: Icon(Icons.thumb_up)),
        Text("以下是文图按钮"),
        ElevatedButton.icon(onPressed: (){

        }, icon: Icon(Icons.send ), label: Text("发送")),
        ElevatedButton(onPressed: (){

        }, child: Column(children: [
          Text("文字上"),
          Icon(Icons.send_rounded)
        ],))

      ],),
      )
    );
  }
}